<?php

namespace IDock\Insurance\ZMBX\Response;

use IDock\Http\Response;
use IDock\Insurance\ZMBX\Response\AllZMBXResponse;
use IDock\Printer\PolicyPaymentPrinter;

class PolicyPaymentResponse extends AllZMBXResponse
{
    /**
     * @var PolicyPaymentPrinter $printer
     */
    public $printer = PolicyPaymentPrinter::class;

    public $url = '';
    public function printerInit(): Response
    {
        $this->printer = new $this->printer;
        $this->printer->payUrl = $this->url;
        return $this;
    }
}
